package com.yanghui.service.impl;

import com.yanghui.dao.LogMapper;
import com.yanghui.pojo.Log;
import com.yanghui.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper logMapper;

    @Override
    public List<Log> selectLogListByDate(Map<String, Object> map) {
        return logMapper.selectLogListByDate(map);
    }

    @Override
    public int insertLog(Log log) {
        return logMapper.insertSelective(log);
    }

    @Override
    public List<?> selectUserLogByDate(Map<String, Object> map) {
        return logMapper.selectUserLogByDate(map);
    }
}
